﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StoreList.aspx.cs" Inherits="H2.NET.Web.Pages.SMD.StoreList" %>

<%@ Register src="../../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>


<form id="pagerForm" onsubmit="return navTabSearch(this);" action="<%= Request.RawUrl %>"
method="post">
    <input type="hidden" name="pageNum" value="<%= PageNumber %>" />
    <input type="hidden" name="numPerPage" value="<%= PageSize %>" />
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td><label>门店授权号：</label><input type="text" name="AuthID" id="AuthId" size="20" value="<%=AuthId%>" /></td>
                <td><label>门店名称：</label><input type="text" name="StoreName" id="StoreName" size="20" value="<%=StoreName%>" /></td>
                <td><label>EP流水号：</label><input type="text" name="EapproveSN" id="EapproveSn" size="20" value="<%=EapproveSn%>" /></td>
                <td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td>
            </tr>
        </table>
    </div>
</div>
</form>
<form id="form1" runat="server">
<div class="pageContent">
    <table class="table" width="100%" layouth="85">
        <thead>
            <tr>
                <th style="width:3%;">序号</th>
                <th align="center">门店授权号</th>
                <th>门店名称</th>
                <th align="center">EP流水号</th>
                <th align="center">EP审批时间</th>
                <th align="center">门店状态</th>
                <th align="center">未完成的业务流程</th>
            </tr>
        </thead>
        <tbody>
            <asp:repeater id="rpt_stores" runat="server" onitemdatabound="rpt_stores_ItemDataBound">
                <ItemTemplate>
                    <tr rel='<%# Eval("StoreID") %>' target="selectedId">
                        <td class="fixedcol"><%# Container.ItemIndex + 1%></td>
                        <td><a href="<%=Page.ResolveUrl("~/Pages/Smd/StoreDetail.aspx?storeid=")%><%#Eval("storeid")%>" target="_blank"><%# Eval("AuthID") %></a></td>
                        <td><%# Eval("StoreName") %></td>
                        <td><%# string.IsNullOrEmpty(Eval("EapproveSN").ToString()) ? "无法查询" : Eval("EapproveSN").ToString() %></td>
                        <td><%# Eval("StoreApprovedDate", "{0:d}") %></td>
                        <td><%# Eval("StoreStatus") %></td>
                        <td><asp:Literal id="l_businesskeys" runat="server" text='<%# Eval("AuthID") %>'></asp:Literal></td>
                    </tr> 
                </ItemTemplate>
            </asp:repeater>
        </tbody>
    </table>
</div>
<uc1:Pager ID="Pager1" runat="server" />
</form>